.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.flex {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: row;
}
.custom-scrollbar {
  overflow: auto !important;
  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    background: #c0c0c1;
  }

  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    border-radius: 10px;
    background: #fff;
  }
}

.scrollbarStyle {
  ::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    background: #c0c0c1;
  }

  ::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    border-radius: 10px;
    background: #fff;
  }
}

.ant-tree {
  li {
    width: 100%;
    .ant-tree-node-content-wrapper {
      padding: 0px !important;
      display: inline-block;
      width: calc(100% - 10px);
      margin-right: 10px;
      &.ant-tree-node-selected,
      &:hover {
        background-color: #e5f6ff !important;
      }
      &.ant-tree-node-selected {
        background: var(--primary-color) !important;
        color: #fff;
      }
    }
  }
}
.card-view-container {
  padding: 20px;
  background: #fff;
  position: relative;
  margin-bottom: 10px;
  &::before {
    position: absolute;
    content: attr(header);
    display: block;
    font-size: 16px;
    height: 18px;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    color: #525a5d;
    margin-bottom: 20px;
  }
  &::after {
    position: absolute;
    left: 130px;
    top: 20px;
    content: attr(unit);
    font-size: 14px;
    height: 18px;
    display: flex;
    align-items: center;
    color: #999;
    margin-bottom: 20px;
  }
}

//智慧工地表格顶部
.zhgd-data-report-header {
  padding: 10px 10px;
  background-color: #fff;
  box-sizing: border-box;
  .flex();
  justify-content: space-between;
  align-items: center;
  &::before {
    // content: attr(header);
    content: " ";
    height: 18px;
    // border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    font-size: 18px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #525a5d;
    line-height: 18px;
  }
}
//智慧工地
.zhgd-bnt-interval {
  &::before {
    content: attr(header);
    color: #e4e5e9;
    font-size: 14px;
    font-family: Microsoft YaHei;
  }
}
.solid-line {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
//智慧工地弹框样式
/deep/.ant-modal-header {
  border-top: 5px solid var(--primary-color) !important;
}
.ant-modal-header {
  border-top: 5px solid var(--primary-color) !important;
}

//智慧工地 文本框 下拉框禁用之后字体颜色
/deep/ .ant-input[disabled] {
  color: #000000;
  border: 0;
  background: #f3f4f6;
}

/deep/ .ant-select-disabled {
  color: #000000;
  border: 0;
  background: #f3f4f6;
}
/deep/ .ant-select-disabled .ant-select-selection {
  background: #f3f4f6;
  border: 0;
}

// 高德地图
.amap-logo,
.amap-copyright {
  display: none !important;
}

.box-shadow {
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.14);
}

.box-sizing {
  box-sizing: border-box;
}
.flex-center {
  .flex();
  justify-content: center;
  align-items: center;
}
//走马灯
/deep/.ant-carousel {
  height: 100%;
  .slick-slider,
  .slick-track,
  .slick-list,
  .slick-slide > div {
    height: 100%;
  }
}

.common-data-statistical-warp {
  .flex();
  background: #fff;
  .box-shadow();
  margin-bottom: 10px;
  .data-statistical-list {
    flex: 1;
    flex-shrink: 0;
    padding: 10px 0;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 0;
      width: 1px;
      height: 38px;
      background: #ededed;
      transform: translateY(-50%);
    }
    &:last-child {
      &::after {
        display: none;
      }
    }
    .flex-center();
    color: #666;
    font-size: 18px;
    font-weight: bold;
    .icon {
      width: 44px;
      height: 44px;
      background: #e9ecf3;
      border-radius: 2px;
      margin-right: 22px;
    }
    .data-statistical-nums {
      font-size: 40px;
      font-weight: bold;
      padding-left: 30px;
      color: var(--primary-color);
      span {
        color: #666;
        margin-left: 20px;
        font-size: 20px;
      }
    }
  }
}

.iframe-container {
  box-sizing: border-box;
  padding: 0 10px 0 10px;
}
/deep/.bj-icon {
  &.bj-icon-zhanglayajiang {
    font-size: 20px;
  }
}

/deep/.ant-menu-submenu-title {
  .flex();
  align-items: center;
}

.text-button-group {
  .table-more-btns {
    color: red;
  }
  .ant-btn-link {
    color: var(--primary-color);
    margin: 0 16px;
    position: relative;
    background: none !important;
    padding: 0;
    &.danger {
      color: #ff4d4f;
    }
    &[disabled="disabled"] {
      color: rgba(0, 0, 0, 0.25);
    }
    &::after {
      content: "";
      position: absolute;
      height: 16px;
      width: 1px;
      background: #e4e5e9;
      right: -16px;
      top: 50%;
      transform: translateY(-50%);
    }
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-right: 0;
      &::after {
        display: none;
      }
    }
  }
}
.vxe-pager {
  height: 80px;
  flex-shrink: 0;
  padding-right: 30px;
  text-align: right;
  .is--active {
    .vxe-input {
      .vxe-input--inner {
        border: 1px solid var(--primary-color) !important;
      }
    }
  }
  .vxe-input {
    height: 36px !important;
  }
  .vxe-pager--jump {
    input {
      height: 36px !important;
      &:focus {
        border: 1px solid var(--primary-color) !important;
      }
    }
  }
  .vxe-pager--wrapper {
    .flex();
    align-items: center;
    justify-content: flex-end;
    .vxe-pager--left-wrapper {
      flex: 1;
      text-align: left;
      padding-left: 20px;
      span {
        margin: 0 4px;
        &:last-of-type {
          color: var(--primary-color);
        }
      }
    }
    .vxe-pager--num-btn {
      min-width: 40px;
      height: 36px;
      background: #ffffff;
      border: 1px solid #dddddd;
      border-radius: 0;
      box-shadow: none !important;
      font-size: 14px;
      &.is--active {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: #fff !important;
        &:hover {
          color: #fff !important;
        }
      }
      &:hover {
        color: var(--primary-color) !important;
      }
    }
    .vxe-pager--next-btn,
    .vxe-pager--prev-btn {
      width: 40px;
      height: 36px;
      background: #ffffff !important;
      border: 1px solid #dddddd;
      border-radius: 0;
      box-shadow: none !important;
      &:active,
      &:hover {
        color: var(--primary-color) !important;
      }
    }
    .vxe-pager--jump-prev,
    .vxe-pager--jump-next {
      width: 40px;
      height: 36px;
      background-color: #ffffff !important;
      box-shadow: none !important;
      .vxe-pager--jump-icon {
        color: var(--primary-color);
      }
    }
  }
}

//附件上传样式
.file-name-type {
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 0;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  padding: 8px;
  padding-top: 0;
  margin-top: 5px;
  height: 135px;
  width: 100%;
  .custom-scrollbar();
  overflow-x: hidden !important;
  .file-name {
    cursor: pointer;
    height: 100%;
    width: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    .file-name-text {
      flex: 1;
      width: 100%;
      line-height: 14px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .file-list {
    width: 100%;
    .flex();
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #525a5d;
    height: 22px;
    padding: 3px 3px;
    border-radius: 2px;
  }
  .size-color {
    color: #999999;
  }
  .file-list:hover {
    .size-color {
      color: var(--primary-color) !important;
    }
    color: var(--primary-color) !important;
    background-color: var(--border-color-base);
  }
  .file-download-list {
    width: 100%;
    .flex();
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #525a5d;
    height: 22px;
    padding: 3px 3px;
    border-radius: 2px;
  }
  .file-download-list:hover {
    cursor: pointer;
    .size-color {
      color: var(--primary-color);
    }
    color: var(--primary-color);
    .file-name-text {
      text-decoration: underline;
    }
  }
  .check-icon {
    color: #4bc964;
    margin-left: 8px;
  }
  .close-icon {
    cursor: pointer;
    margin-left: 8px;
    color: #ff3f4a;
  }
  .download-icon {
    cursor: pointer;
    color: var(--primary-color);
    margin-left: 8px;
  }
}
.result-container {
  background: #fff;
  margin-top: 10px;
  .common-result-container-header {
    .flex();
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    &::before {
      content: attr(header);
      font-size: 16px;
      color: #525a5d;
      border-left: 3px solid var(--primary-color);
      padding-left: 10px;
      height: 18px;
      .flex();
      align-items: center;
    }
  }
}

//修改input placeholder样式
input {
  &::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #bfbfbf;
  }
  &::-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #bfbfbf;
  }
  &::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #bfbfbf;
  }
  &:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #bfbfbf;
  }
}
//vxeTbale 选择框颜色
/deep/.vxe-cell--checkbox {
  color: var(--primary-color);
}
/deep/.vxe-table {
  .vxe-cell--checkbox {
    color: #606266;
  }
}

/deep/.vxe-table--render-default
  .is--checked.vxe-cell--checkbox
  .vxe-checkbox--icon:before,
/deep/.vxe-table--render-default
  .is--indeterminate.vxe-cell--checkbox
  .vxe-checkbox--icon:before {
  border-color: var(--primary-color);
  background: var(--primary-color);
}
/deep/.vxe-table--render-default
  .vxe-cell--checkbox:not(.is--disabled):hover
  .vxe-checkbox--icon:before {
  border-color: var(--primary-color);
}

//折叠面板公共样式
/deep/.ant-collapse {
  border-radius: 0;
  border: none;
  background: #fff;
  .ant-collapse-item {
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    //头部
    .ant-collapse-header {
      padding: 0px;
      margin-left: auto;
      margin-right: 30px;
      border-radius: 0;
      .flex();
      align-items: center;
      //左侧 标题
      .customize-text {
        flex: 1;
        padding: 20px 0px 18px 30px;
        .flex();
        align-items: center;
        justify-content: space-between;
        &::before {
          content: attr(header);
          font-size: 15px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #525a5d;
        }
      }
      //右侧 收起/展开 按钮
      .customize-extra {
        .flex();
        align-items: center;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: var(--primary-color);
        .icon {
          transform: scale(0.75);
          margin-left: 4px;
          transition: 0.3s;
          &.active {
            transform: scale(0.75) rotate(180deg);
          }
        }
      }
    }
    //主体
    .ant-collapse-content {
      border: none;
      .ant-collapse-content-box {
        padding: 0;
      }
    }
  }
}

//页面-基础布局样式
.beam-layout-container {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px 10px;
  overflow: hidden;
  .beam-table-container {
    margin: 10px 0 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    .table-header {
      padding: 20px 20px;
      background-color: #fff;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
      &::before {
        content: attr(header);
        height: 18px;
        border-left: 3px solid var(--primary-color);
        padding-left: 10px;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #525a5d;
        line-height: 18px;
      }
    }
    .main {
      flex: 1;
      height: 100%;
    }
    .pager-container {
      flex-shrink: 0;
    }
  }
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; /* Safari */
  margin: 0;
}
